import request from '@/utils/request'

const urlbase = 'api/manager/admin/v1'

export function apiAdmins (cmd, parameter) {
  const urlpath = `${urlbase}/${cmd}`
  return request({
    url: urlpath,
    method: 'post',
    data: parameter
  })
}

// 特殊员工模块
export function getUsersList (parameter) {
  return request({
    url: '/api/manager/person/v1/List',
    method: 'get',
    params: parameter
  })
}
// 获取用户菜单
export function getUsersMenuList (parameter) {
  return request({
    url: '/api/manager/menu/v1/navmenu',
    method: 'get',
    params: parameter
  })
}
// 获取用户信息
export function getUsersInfoApi() {
  return request({
    url: '/api/manager/admin/v1/login/info',
    method: 'get'
  })
}
